'''
Author: your name
Date: 2020-11-04 15:26:55
LastEditTime: 2020-11-04 16:00:46
LastEditors: your name
Description: In User Settings Edit
FilePath: \python-study\djangoS\HelloWorld\HelloWorld\search2.py
'''
# -*- coding: utf-8 -*-

from django.shortcuts import render
from django.views.decorators import csrf

# 接收POST请求数据
def search_post(request):
    ctx ={}
    if request.POST:
        ctx['rlt'] = request.POST['q']
    return render(request, "post.html", ctx)            